package online.misscl.lsy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author misscl
 * @since 2023/03/16 23:17
 */
@Getter
@Setter
@ApiModel(value = "Collect对象", description = "收藏表")
public class Collect implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("收藏类型，疫苗或咨询")
    @TableField("collect_type")
    private String collectType;

    @ApiModelProperty("疫苗或咨询id")
    @TableField("collect_id")
    private Integer collectId;

    @ApiModelProperty("是否点赞")
    @TableField("is_good")
    private String isGood;


}
